package com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.factory;

import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.FactoryTest.MyFirstInterTest_01;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.FactoryTest.MyFirstInterTest_02;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.FactoryTest.MyFirstInterTest_03;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.inter.MyFirstInter;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.AbstractFactory.inter.MySencodeInter;

/**
 * 杭州惟君医疗科技有限公司09
 * Created by 20433 on 2018/5/17
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class MyFirstInterFactory extends MyAbstractFactory {
    @Override
    public MyFirstInter getFirstInter(String FirstInter) {
        if(FirstInter == null){
            return null;
        }

        switch (FirstInter){
            case "first":
                return new MyFirstInterTest_01();
            case "secode":
                return new MyFirstInterTest_02();
            case "throude":
                return new MyFirstInterTest_03();

        }
        return null;
    }

    @Override
    public MySencodeInter getSencodeInter(String SencodeInter) {
        return null;
    }
}
